import { IntersectionType } from "@nestjs/mapped-types";
import { PageSize } from "../../dto/all-dto";
import { IsNotEmpty, IsOptional } from "class-validator";

export class FindBannerDTO extends IntersectionType(PageSize){
  @IsOptional()
  name?: string;

  @IsOptional()
  code?: string
}

export class FindBannerDataDTO{
  @IsNotEmpty()
  code: string
}